package myArrayList;

public class ArrayMain {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(10);
        myArrayList.add(20);
        myArrayList.add(30);
        myArrayList.add(40);
        myArrayList.add(50);
        myArrayList.add(60);
        myArrayList.display();
        //ystem.out.println(myArrayList.size());
        //System.out.println(myArrayList.elem.length);
        //myArrayList.add(-1,10);
        myArrayList.add(0,20);
        myArrayList.add(1,50);
        myArrayList.add(2,30);
        myArrayList.display();
        System.out.println(myArrayList.contains(90));
        System.out.println(myArrayList.contains(10));
        System.out.println(myArrayList.indexOf(10));
        System.out.println(myArrayList.indexOf(90));
        System.out.println(myArrayList.get(6));
        myArrayList.set(0,100);
        myArrayList.display();
        myArrayList.remove(20);
        myArrayList.display();
        myArrayList.remove(60);
        //myArrayList.remove(60);
        myArrayList.display();
    }
}
